home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms / hqfax31.zip / EP2GRAFX.BAT < prev    next >
DOS Batch File  |  1995-05-02  |  5KB  |  105 lines

  1. REM *********************************************************************/
  2. REM                                                                     */
  3. REM   SYSTEM       : HQ-FAX, Uitilities                                 */
  4. REM   COPYRIGHT    : (c) 1995 HTF CONSULTING                            */
  5. REM                                                                     */
  6. REM *********************************************************************/
  7. REM                                                                     */
  8. REM   BAT file name: EP2GRAFX.bat                                       */
  9. REM   DESCRIPTION  : This is the work-horse batch file which drives the */
  10. REM                  conversion and view or send process for the Grp 3  */
  11. REM                  FAX formats                                        */
  12. REM *********************************************************************/
  13. REM
  14. Rem - Documentname Fontname (Options )
  15. Echo off
  16. CLS
  17. Echo *************************************************************************
  18. Echo *****                     HTF CONSULTING                            *****
  19. Echo ***            EPSON to Graphics Conversion Procedure                 ***
  20. Echo **               Copyright (c) 1995  HTF Consulting                    **
  21. Echo *                                                                       *
  22. Echo * Convert EPSON file: '%1.ECL' to FAX in font '%2'
  23. REM Echo *                                                                       *
  24. if not "%3" == "" Echo * Special options chosen are: "%3 %4 %5 %6 %7 %8 %9"
  25. if "%3" == "" Echo * No Special options chosen:
  26. Echo *                                                                       *
  27. Echo * Available special options are:                                        *
  28. Echo *  /CDR     Convert Double-Print to REVERSE-VIDEO                       *
  29. Echo *  /CONT    Make 1 contiguous FAX file                                  *
  30. Echo *  /FHxx    Specify a Fax header format:                                *
  31. Echo *           xx = {00, AD, BF, C1, C2, CA, CP, DC, FR, PC, QL, TB, TF, TH}               *
  32. Echo *  /FORM    Specify a Pre-printed form as a background of every page    *
  33. Echo *  /LOGO    Apply the image 'LOGO.PCX' to the top center of every page  *
  34. Echo *  /MF      Produced multiple files (one per page)                      *
  35. Echo *  /PFxx    Override the default page format(NA) : xx = {A3, A4, B4, NA}*
  36. Echo *  /PPxx.yy Specify start(xx), & end(yy) page numbers (default = all )  *
  37. Echo *  /SEND    Specify Send parameters; Ex: /SEND 999-8888 /TM09:00p       *
  38. Echo *           (Send parameters must be last parameters on command line)   *
  39. Echo *  /STD     Produce a standard resolution file (else FINE)              *
  40. Echo *  /VIEW    View the produced image(s)                                  *
  41. Echo *  /RVx     Specify Reverse-Video trigger character: x = {*, ~, \, ^ }  *
  42. Echo *************************************************************************
  43. Pause
  44. if not exist %1.ECL goto Abend
  45. if not exist %2.FNT goto Abend
  46.  
  47. CLS
  48. Echo **************************************************************************
  49. Echo ***  Converting EPSON file %1.ECL to graphics images
  50. Echo ***  Approximate time required will be 1 minutes per full page          **
  51. Echo ***  ( When run on a 16 Mhz AT 386/SX )                                 **
  52. Echo ***                                                                     **
  53. Echo ***  Approximate disk space required will be:                           **
  54. Echo ***      .05 Megabytes (50K) per page                                   **
  55. Echo ***                                                                     **
  56. Echo **************************************************************************
  57. Echo Working .....
  58.  
  59. ECL2FAX3.exe %1.ECL %2 * %3 %4 %5 %6 %7 %8 %9
  60. if errorlevel 2 goto Abend
  61.  
  62. :Display
  63. if %4 == /VIEW  Call viewfax3.bat %1 %3
  64. if %5 == /VIEW  Call viewfax3.bat %1 %3
  65. if %6 == /VIEW  Call viewfax3.bat %1 %3
  66. if %7 == /VIEW  Call viewfax3.bat %1 %3
  67. if %8 == /VIEW  Call viewfax3.bat %1 %3
  68. if %9 == /VIEW  Call viewfax3.bat %1 %3
  69.  
  70. :Dial
  71. REM - Call the Faxsend.bat file to issue a DOS command line send
  72. if %4 == /SEND Faxsend.bat %1 %3 %5 %6 %7 %8 %9
  73. if %5 == /SEND Faxsend.bat %1 %3 %6 %7 %8 %9
  74. if %6 == /SEND Faxsend.bat %1 %3 %7 %8 %9
  75. if %7 == /SEND Faxsend.bat %1 %3 %8 %9
  76. if %8 == /SEND Faxsend.bat %1 %3 %9
  77.  
  78. :Abend
  79. if not errorlevel 2 CLS
  80. REM Type Bell.txt
  81. Echo **************************************************************************
  82. Echo ***                                                                      *
  83. Echo ***  ep2grafx.bat: Abnormal end of job:                                  *
  84. Echo ***  Source document %1.ECL,  Font table %2.FNT
  85. Echo ***                                                                      *
  86. Echo **************************************************************************
  87. Echo *
  88. if not exist %1.ECL Echo ***    EPSON file %1.ECL not found
  89. if exist %3.FNT goto quit
  90. Echo ***    %2.FNT - File not found
  91. Echo ***
  92. Echo ***  Chosen font not available - Available Fonts are listed below:
  93. dir *.fnt /w
  94. Echo ***
  95. Echo ***  The 'A' suffixes are for Alternate Fonts (Elite pitch)
  96. Pause
  97.  
  98. :quit
  99. Echo on
  100. Rem - chdir c:\
  101.  
  102. :quit
  103. Echo on
  104. Rem - chdir c:\
  105.